package com.lianjinsu.shop.service;

import com.lianjinsu.shop.controller.dto.OrdersDto;
import com.lianjinsu.shop.entity.Orders;

import java.util.List;
import java.util.Map;

public interface OrdersService {
    Orders getById(String tradeSn);

    boolean deleteById(String tradeSn);

    boolean update(Orders orders);

    List<Orders> selectByUser(String openId);

    Map<String, Object> generateOrder(OrdersDto ordersDto);

    List<Orders> ordersList(int status);

    int cancelOrder(String tradeSn);

    List<Orders> waitPayOrdersList();
}
